package com.koron.order.overhaul.feign;

import com.koron.bean.base.Response;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author twcao
 * @title: PlanIssueFeign
 * @projectName GDH_EAM_V2
 * @description: 工单计划feign
 * @date 2021/11/1217:10
 */
@FeignClient(value = "eam-service-plan", fallbackFactory = FeignFallbackFactory.class)
public interface PlanIssueFeign {

    /**
     * 开始执行工单时，调用此接口
     * @param issueCode 工单编码
     * @return 工单计划详情
     */
    @PostMapping("/issue/issueExecute")
    Response issueExecute(@RequestParam("issueCode") String issueCode);

    /**
     * 开始执行工单时，调用此接口
     * @param issueCode 工单编码
     * @return 工单计划详情
     */
    @PostMapping("/issue/issueFinish")
    Response issueFinish(@RequestParam("issueCode") String issueCode);
}
